<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>菜单添加</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/system/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/system/css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
    <input type="hidden" class="id" placeholder="">
    <input type="hidden" class="pid" placeholder="">
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">资源管理</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input name" lay-verify="required" placeholder="菜单名称">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">上级目录</label>
        <div class="layui-input-block">
            <select id="parentId" name="parentId" lay-filter="parentId" >
                <option value="">设为一级菜单</option >
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">资源图标</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input icon" placeholder="">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">快捷按钮</label>
        <div class="layui-input-block">
            <select class="isQuick" name="isQuick" lay-filter="isQuick" >
                <option value="1">启用</option >
                <option value="0">禁用</option >
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">背景色</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input bgColor" placeholder="">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">资源路径</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input url" placeholder="">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">权限描述</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input descr" placeholder="">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-sm" onclick="sub()">提交</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="/system/layui/layui.js"></script>
<script src="/system/js/jquery-3.3.1.js"></script>
<script type="text/javascript" src="/sysResource/addResource.js"></script>
</body>
</html>